import os
from celery import Celery

# Remember that the process you’re setting up requires at least three services to run at the same time:
    # Producer: Your Django app
    # Message Broker: The Redis server
    # Consumer: Your Celery app


os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_celery.settings") # If key is in the dictionary, return its value. If not, insert key with a value of default and return default
app = Celery("django_celery")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()
